<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>哇爱踢桃 - 云游潮汕</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <!-- 首页：卡片类型选择 -->
        <div class="home-page" id="home-page">
            <div class="logo">
                <h1>哇爱踢桃</h1>
                <p>云游潮汕 - 老爷保号！运气爆表</p>
            </div>
            
            <div class="card-selection">
                <div class="card-option" id="event-card-option">
                    <!-- 事件卡背面作为按钮 -->
                    <img src="images/chance-01.png" alt="随机事件卡" class="card-option-img">
                    <h2>随机事件卡</h2>
                    <p>点击进入随机事件卡抽卡</p>
                </div>
                
                <div class="card-option" id="skill-card-option">
                    <!-- 技能卡背面作为按钮 -->
                    <img src="images/SKILL-01.png" alt="技能卡" class="card-option-img">
                    <h2>技能卡</h2>
                    <p>点击进入技能卡抽卡</p>
                </div>
            </div>
        </div>
        
        <!-- 随机事件卡抽卡页面 -->
        <div class="draw-page" id="event-draw-page">
            <div class="page-header">
                <button class="back-btn" onclick="showPage('home')">← 返回</button>
                <h2>随机事件卡</h2>
                <div style="width: 80px;"></div>
            </div>
            
            <div class="cards-container" id="event-cards-container">
                <div class="card-column">
                    <h3 id="event-current-title">当前卡片</h3>
                    <div class="draw-area">
                        <div class="card" id="event-card">
                            <div class="card-face card-back">
                                <!-- 事件卡背面 -->
                                <img src="images/chance-01.png" alt="事件卡背面" class="card-img">
                            </div>
                            <div class="card-face card-front">
                                <!-- 事件卡正面 - 动态显示 -->
                                <img id="event-front-img" src="" alt="事件卡正面" class="card-img">
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="card-column" id="event-history-column" style="display: none;">
                    <h3>上一张卡片</h3>
                    <div class="draw-area">
                        <div class="card" id="event-history-card">
                            <div class="card-face card-back">
                                <!-- 事件卡背面 -->
                                <img src="images/chance-01.png" alt="事件卡背面" class="card-img">
                            </div>
                            <div class="card-face card-front">
                                <!-- 事件卡历史正面 - 动态显示 -->
                                <img id="event-history-img" src="" alt="事件卡历史正面" class="card-img">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="button-group">
                <button class="draw-btn" id="draw-event-btn">抽取事件卡</button>
                <button class="history-btn" id="event-history-btn" disabled>查看上一张</button>
            </div>
            <div class="card-counter" id="event-counter">已抽取: 0 次</div>
        </div>
        
        <!-- 技能卡抽卡页面 -->
        <div class="draw-page" id="skill-draw-page">
            <div class="page-header">
                <button class="back-btn" onclick="showPage('home')">← 返回</button>
                <h2>技能卡</h2>
                <div style="width: 80px;"></div>
            </div>
            
            <div class="cards-container" id="skill-cards-container">
                <div class="card-column">
                    <h3 id="skill-current-title">当前卡片</h3>
                    <div class="draw-area">
                        <div class="card" id="skill-card">
                            <div class="card-face card-back">
                                <!-- 技能卡背面 -->
                                <img src="images/SKILL-01.png" alt="技能卡背面" class="card-img">
                            </div>
                            <div class="card-face card-front">
                                <!-- 技能卡正面 - 动态显示 -->
                                <img id="skill-front-img" src="" alt="技能卡正面" class="card-img">
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="card-column" id="skill-history-column" style="display: none;">
                    <h3>上一张卡片</h3>
                    <div class="draw-area">
                        <div class="card" id="skill-history-card">
                            <div class="card-face card-back">
                                <!-- 技能卡背面 -->
                                <img src="images/SKILL-01.png" alt="技能卡背面" class="card-img">
                            </div>
                            <div class="card-face card-front">
                                <!-- 技能卡历史正面 - 动态显示 -->
                                <img id="skill-history-img" src="" alt="技能卡历史正面" class="card-img">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="button-group">
                <button class="draw-btn" id="draw-skill-btn">抽取技能卡</button>
                <button class="history-btn" id="skill-history-btn" disabled>查看上一张</button>
            </div>
            <div class="card-counter" id="skill-counter">已抽取: 0 次</div>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>